<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>详情</title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 8]>
    <script>
        alert('H+已不支持IE6-8，请使用谷歌、火狐等浏览器\n或360、QQ等国产浏览器的极速模式浏览本页面！');
    </script>
    <![endif]-->

    <link href="/static/admin/public/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="/static/admin/public/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
    <link href="/static/admin/public/css/animate.min.css" rel="stylesheet">
    <link href="/static/toastr/toastr.min.css" rel="stylesheet"></link>
    <link href="/static/admin/public/css/style.min.css?v=3.2.0" rel="stylesheet">
    <link href="/static/admin/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css?v=3.2.0" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div class="wrapper wrapper-content" id="welcome">
    <div class="row">
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
<!--                    <span class="label label-success pull-right">月</span>-->
                    <h5>招标公告</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{{tenderCount.count}}</h1>
                    <div class="stat-percent font-bold text-danger">
                        未审核：{{tenderCount.uncheckCount}}
                    </div>
                    <small>总数</small>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <!--                    <span class="label label-success pull-right">月</span>-->
                    <h5>实时货源</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{{sourceCount.count}}</h1>
                    <div class="stat-percent font-bold text-danger">
                        未审核：{{sourceCount.uncheckCount}}
                    </div>
                    <small>总数</small>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <!--                    <span class="label label-success pull-right">月</span>-->
                    <h5>货主企业</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{{consignorCount.count}}</h1>
                    <div class="stat-percent font-bold text-danger">
                        未审核：{{consignorCount.uncheckCount}}
                    </div>
                    <small>总数</small>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <!--                    <span class="label label-success pull-right">月</span>-->
                    <h5>物流企业</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">{{logisticsCount.count}}</h1>
                    <div class="stat-percent font-bold text-danger">
                        未审核：{{logisticsCount.uncheckCount}}
                    </div>
                    <small>总数</small>
                </div>
            </div>
        </div>
    </div>

</div>
<!-- 全局js -->
<script src="/static/admin/public/js/jquery-2.1.1.min.js"></script>
<script src="/static/admin/public/js/bootstrap.min.js?v=3.4.0"></script>
<script src="/static/admin/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/static/admin/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/admin/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="/static/vue/vue.js"></script>

<!-- 自定义js -->
<script type="text/javascript" src="/static/util/axios.min.js"></script>
<script type="text/javascript" src="/static/admin/api/require.js"></script>
<script type="text/javascript" src="/static/admin/api/publicAjax.js"></script>

<!-- 第三方插件 -->

<script src="/static/toastr/toastr.min.js"></script>
<script src="/static/toastr/customToastr.js"></script>

<script src="/static/admin/plugins/validate/jquery.validate.min.js"></script>
<script src="/static/admin/plugins/validate/messages_zh.min.js"></script>

<script>
    var vmWelcome = new Vue({
        el:"#welcome",
        data:{
            tenderCount:{},
            sourceCount:{},
            consignorCount:{},
            logisticsCount:{}
        },
        methods:{
            getTenderCount:function () {
                var el = this
                var where = {
                    'item_category':1
                }
                var postData = {
                    'where':where
                }
                AjaxPost(postData,'/admin/index/getTenderCount').then((response)=>{
                        el.tenderCount = response.result
                })
            },
            getSourceCount:function () {
                var el = this
                var where = {
                    'item_category':2
                }
                var postData = {
                    'where':where
                }
                AjaxPost(postData,'/admin/index/getTenderCount').then((response)=>{
                    el.sourceCount = response.result
                })
            },
            getConsignorCount:function () {
                var el = this
                var where = {
                    'member_category':1
                }
                var postData = {
                    'where':where
                }
                AjaxPost(postData,'/admin/index/getMemberInfoCount').then((response)=>{
                    el.consignorCount = response.result
                })
            },
            getLogisticsCount:function () {
                var el = this
                var where = {
                    'member_category':2
                }
                var postData = {
                    'where':where
                }
                AjaxPost(postData,'/admin/index/getMemberInfoCount').then((response)=>{
                    el.logisticsCount = response.result
                })
            }
        },
        mounted(){
            this.getTenderCount()
            this.getSourceCount()
            this.getConsignorCount()
            this.getLogisticsCount()
        }
    })
</script>

</body>

</html>